package view.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import view.MainFrame;

/**
 * This class gives functionality to the back button in the 
 * OccupationChooserMenu.
 * 
 * @author Stephanie
 *
 */
public class BackListener implements ActionListener {
	
	private MainFrame mainFrame;
	
	public BackListener( MainFrame mainFrame ) {
		this.mainFrame = mainFrame;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		mainFrame.changeActivePanel("MAIN_MENU");
	}

}
